import ButtonHome from '../page/buttonHome.js'
import HomeMall from '../page/shopMall/index.js'
import Todo from '../page/todoApp/index.js'

const { createRouter, createWebHistory } = VueRouter
const routerHistory = createWebHistory()
const routes = [
  {
    path: '/todo1',
    component: Todo
  },
  {
    path: '/HandleAllPageComponent/demo1/index.html/',
    component: HomeMall
  },
  {
    path: '/demo1index.html',
    component: HomeMall,
    redirect: '/demo1/index.html'
  },
  {
    path: '/button-home',
    component: ButtonHome
  },
  {
    path: '/home-mall',
    component: HomeMall
  }
]
const router = createRouter({
  history: routerHistory,
  routes
})

export default router
